import VueRouter from "vue-router";
import Vue from "vue";

Vue.use(VueRouter)

const login = () => import('@/page/login/index.vue')
const error = () => import('@/page/error/error.vue')

//管理员
const index = () => import('@/page/index/index.vue')
const home = () => import('@/page/home/home.vue')
const menu = () => import('@/page/menu/menu.vue')
const summaryIndex = () => import('@/page/menu/summaryIndex.vue')

const statisticCopy = () => import('@/page/statistics/statisticIndexCopy.vue')
const statisticIndex = () => import('@/page/statistics/statisticIndex.vue')
const statisticNumber = () => import('@/page/statistics/statisticNumIndex.vue')
const statisticMap = () => import('@/page/statistics/statisticMapIndex.vue')

const hunanshengIndex1 = () => import('@/page/map/index1.vue')


const list1 = () => import('@/page/list/list1.vue')
const detail = () => import('@/page/list/detail.vue')
const detail1 = () => import('@/page/list/detail1.vue')
const list2 = () => import('@/page/list/list2.vue')
const list3 = () => import('@/page/list/list3.vue')
const list4 = () => import('@/page/list/list4.vue')
const pendCase = () => import('@/page/list/pendCase.vue')
const personProcessAnalysis = () => import('@/page/list/personProcessAnalysis.vue')

const caseRiskIndex = () => import('@/page/caseRisk/index.vue')
const caseRiskIndex1 = () => import('@/page/caseRisk/index1.vue')
const userShowIndex = () => import('@/page/userShow/index.vue')



const index_yz = () => import('@/page/view/index_yz.vue')
const index_sgb = () => import('@/page/view/index_sgb.vue')
const index_jjz = () => import('@/page/view/index_jjz.vue')
const index_dcs = () => import('@/page/view/index_dcs.vue')


const adminBaseView = () => import('@/components/admin-base.vue')
// const rightContent = () => import('@/components/admin-right.vue')

const routes = [
    {
        path: '',
        component: login
    },
    {
        path: '/menu-v1',
        component: menu,
    },

    {
        path: '/summary-index-v1',
        component: summaryIndex,
    },
    {
        path: '/menu',
        component: adminBaseView,
        children: [
            {
                path: '',
                component: menu
            },
            {
                path: '/index_yz',
                component: index_yz,
            },
            {
                path: '/index_sgb',
                component: index_sgb,
            },
            {
                path: '/index_jjz',
                component: index_jjz,
            },
            {
                path: '/index_dcs',
                component: index_dcs,
            },
            {
                path: '/summaryIndex',
                component: summaryIndex
            },
            {
                path: '/index1',
                component: hunanshengIndex1
            },
            {
                path: '/statistic_people',
                component: statisticIndex
            },
            {
                path: '/list1',
                component: list1
            },
            {
                path: '/detail',
                component: detail
            },
            {
                path: '/detail1',
                component: detail1
            },
            {
                path: '/list2',
                component: list2
            },
            {
                path: '/list3',
                component: list3
            },
            {
                path: '/list4',
                component: list4
            },
            {
                path: '/statistic_number',
                component: statisticNumber
            },
            {
                path: '/statistic_map',
                component: statisticMap
            },
            {
                path: '/statisticCopy',
                component: statisticCopy
            },
            {
                path: '/pendCase',
                component: pendCase
            },
            {
                path: '/personProcessAnalysis',
                component: personProcessAnalysis
            },
            {
                path: '/caseRiskIndex',
                component: caseRiskIndex
            },
            {
                path: '/caseRiskIndex1',
                component: caseRiskIndex1,
            },
            {
                path: '/userShowIndex',
                component: userShowIndex
            },
        ]
    },
    {
        path: '/login',
        component: login
    }, {
        path: '/error',
        component: error
    }, {
        path: '/home',
        component: home
    }, {
        path: '/menu',
        component: menu
    }

]


const router = new VueRouter({
    routes
})

export default router;